<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>SVG绘制三角形</title>
	</head>
	<body>
		<!-- 标签polyline法 -->
		<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%">
             <polyline points="0,40 40,80 80,40 0,40" style="fill:yellow;stroke:red;stroke-width:1" />			
		</svg>
		<!-- 标签polylgon法 -->
		<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%">
		     <polygon points="220,10 300,210 170,250 123,234" style="fill:fuchsia;stroke:red;stroke-width:1" />			
		</svg>
	</body>
</html>